package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * PeisPatientHealthplanId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientHealthplanId implements java.io.Serializable {

	// Fields

	private Integer healthplanId;
	private String target;
	private String step;
	private String foodPlan;
	private String sportPlan;
	private String attention;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public PeisPatientHealthplanId() {
	}

	/** minimal constructor */
	public PeisPatientHealthplanId(Integer healthplanId) {
		this.healthplanId = healthplanId;
	}

	/** full constructor */
	public PeisPatientHealthplanId(Integer healthplanId, String target,
			String step, String foodPlan, String sportPlan, String attention,
			Timestamp createTime) {
		this.healthplanId = healthplanId;
		this.target = target;
		this.step = step;
		this.foodPlan = foodPlan;
		this.sportPlan = sportPlan;
		this.attention = attention;
		this.createTime = createTime;
	}

	// Property accessors

	public Integer getHealthplanId() {
		return this.healthplanId;
	}

	public void setHealthplanId(Integer healthplanId) {
		this.healthplanId = healthplanId;
	}

	public String getTarget() {
		return this.target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getStep() {
		return this.step;
	}

	public void setStep(String step) {
		this.step = step;
	}

	public String getFoodPlan() {
		return this.foodPlan;
	}

	public void setFoodPlan(String foodPlan) {
		this.foodPlan = foodPlan;
	}

	public String getSportPlan() {
		return this.sportPlan;
	}

	public void setSportPlan(String sportPlan) {
		this.sportPlan = sportPlan;
	}

	public String getAttention() {
		return this.attention;
	}

	public void setAttention(String attention) {
		this.attention = attention;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientHealthplanId))
			return false;
		PeisPatientHealthplanId castOther = (PeisPatientHealthplanId) other;

		return ((this.getHealthplanId() == castOther.getHealthplanId()) || (this
				.getHealthplanId() != null
				&& castOther.getHealthplanId() != null && this
				.getHealthplanId().equals(castOther.getHealthplanId())))
				&& ((this.getTarget() == castOther.getTarget()) || (this
						.getTarget() != null
						&& castOther.getTarget() != null && this.getTarget()
						.equals(castOther.getTarget())))
				&& ((this.getStep() == castOther.getStep()) || (this.getStep() != null
						&& castOther.getStep() != null && this.getStep()
						.equals(castOther.getStep())))
				&& ((this.getFoodPlan() == castOther.getFoodPlan()) || (this
						.getFoodPlan() != null
						&& castOther.getFoodPlan() != null && this
						.getFoodPlan().equals(castOther.getFoodPlan())))
				&& ((this.getSportPlan() == castOther.getSportPlan()) || (this
						.getSportPlan() != null
						&& castOther.getSportPlan() != null && this
						.getSportPlan().equals(castOther.getSportPlan())))
				&& ((this.getAttention() == castOther.getAttention()) || (this
						.getAttention() != null
						&& castOther.getAttention() != null && this
						.getAttention().equals(castOther.getAttention())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getHealthplanId() == null ? 0 : this.getHealthplanId()
						.hashCode());
		result = 37 * result
				+ (getTarget() == null ? 0 : this.getTarget().hashCode());
		result = 37 * result
				+ (getStep() == null ? 0 : this.getStep().hashCode());
		result = 37 * result
				+ (getFoodPlan() == null ? 0 : this.getFoodPlan().hashCode());
		result = 37 * result
				+ (getSportPlan() == null ? 0 : this.getSportPlan().hashCode());
		result = 37 * result
				+ (getAttention() == null ? 0 : this.getAttention().hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		return result;
	}

}